package blog.test;

import blog.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloWordController {

    @Autowired
    private TestService testService;

    @RequestMapping
    public String hello(){

        testService.say();

        return "hello";
    }
}
